import request from '@/utils/request'


// 查询履约保函详细
export function getAgreement(id) {
  return request({
    url: '/guarantee/agreement/' + id,
    method: 'get'
  })
}


// 业务主管查询履约保函列表
export function yyzgList(query) {
  return request({
    url: '/guarantee/check/yyzgList',
    method: 'get',
    params: query
  })
}

// 业务主管和业务总审核履约保函
export function checkSave(data) {
  return request({
    url: '/guarantee/check/yyzgCheck',
    method: 'post',
    data: data
  })
}


// 修改履约保函
export function updateAgreement(data) {
  return request({
    url: '/guarantee/agreement',
    method: 'put',
    data: data
  })
}
// 运营待送审银行提交履约保函
export function yybSave(id) {
  return request({
    url: '/guarantee/check/yybSave/' + id,
    method: 'post'
  })
}

// 业务总查询履约保函列表
export function yyzList(query) {
  return request({
    url: '/guarantee/check/yyzList',
    method: 'get',
    params: query
  })
}

// 财务收款确认查询履约保函列表
export function cwqList(query) {
  return request({
    url: '/guarantee/check/cwqList',
    method: 'get',
    params: query
  })
}

// 运营送审履约保函列表
export function yyBList(query) {
  return request({
    url: '/guarantee/check/yyBList',
    method: 'get',
    params: query
  })
}
// 运营上传履约保函列表
export function yyHList(query) {
  return request({
    url: '/guarantee/check/yyHList',
    method: 'get',
    params: query
  })
}


// 财务确认收益履约保函列表
export function cwCList(query) {
  return request({
    url: '/guarantee/check/cwCList',
    method: 'get',
    params: query
  })
}
